x11: Avoid X error traps within server grabs
authorCarlos Garnacho <carlosg@gnome.org>
Tue, 30 Jun 2015 17:04:13 +0000 (19:04 +0200)
committerMatthias Clasen <mclasen@redhat.com>
Wed, 1 Jul 2015 14:42:41 +0000 (07:42 -0700)
commit0f3995a446e77a7c0a752a23bf2bd6a4e93b2c6a
tree0e40701154a51385934a5a143c32b0cd35f82924
parentef93c714f80264dbd5e39a3e27bdca441545aaa0
x11: Avoid X error traps within server grabs

gdk_x11_device_xi2_window_at_position() may attempt to push/pop
a few error trap pairs while traversing the window tree. Move it
outside the server grab, and around the multiple XIQueryPointer
calls we may do here.

https://bugzilla.gnome.org/show_bug.cgi?id=751739
gdk/x11/gdkdevice-xi2.c